<h4><a href="<?php echo base_url().'siam/lihat-krs.html'?>">KARTU RENCANA STUDI</a> &raquo; <span class="current_page">LIHAT KARTU RENCANA STUDI</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    <span>KARTU RENCANA STUDI<?php if($getDataKrs): ?>: <b>SEMESTER <?php foreach($getDataKrs as $krs): ?> <?php echo strtoupper($krs->SEMESTER).' '.$krs->TAHUN_AJARAN." / ".($krs->TAHUN_AJARAN+1) ?></b><?php break;?> <?php endforeach; ?><?php endif; ?></span>
    <div class="switch" style="width:200px; padding-top:14px">
						<table width="200px" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<td align="right">
									<img src="<?php echo base_url().'images/cetak.png' ?>" class="mid_align" /> <?php echo anchor_popup('siam/cetak-krs/'.$info_tahun.'/'.$info_semester.'.html', 'CETAK', $atts) ?>
								</td>
                            </tr>
						</tbody>
						</table>
					</div>
	</div>
    <div id="account_info">
    &nbsp;<br />
    </div>
	<br class="clear"/>


<div class="text">
<p>
 <?php if($getDataKrs): ?>
 <table class="data">
            <tr class="font_white" bgcolor="#000000" align="center">
                <th width="30" height="40">No.</th>
                <th width="90">Kode MK</th>
                <th width="310">Nama MK</th>
                <th width="60">SKS</th>
                <th width="60">Kelas</th>
            </tr>
            <?php $total_sks = 0; ?>
            <?php $seq_number = 1; ?>
            <?php foreach($getDataKrs as $krs): ?>
            <tr align="center">
              <td height="18" align="right"><?php echo $seq_number; ?></td>
              <td><?php echo strtoupper($krs->KODE_MK); ?></td>
              <td align="left"><?php echo $krs->NAMA_MK; ?></td>
              <td><?php echo $krs->SKS; ?></td>
              <td><?php echo $krs->KELAS; ?></td>
            </tr>
            <?php $total_sks = $total_sks + $krs->SKS; ?>
            <?php $seq_number++; ?>
            <?php endforeach; ?>

            <tr bgcolor="#FFFFFF" align="center">
              <td></td>
              <td></td>
              <td align="right"><b>Jumlah SKS</b></td>
              <td><?php echo $total_sks; ?></td>
              <td></td>
            </tr>

            </table>

<?php else: ?>
<div align="center">
  <div style="width:500px">
      <div id="p_messages_error">
        KRS tidak dapat ditampilkan. Mungkin disebabkan:
        <br />
        <ol>
        <li>Belum ada data KRS pada Semester <?php $semester = ($info_semester == 2)? "Genap" : ($info_semester == 3)? "KAS":"Ganjil"; ?><?php echo $semester; ?> <?php echo $info_tahun ?>/<?php echo $info_tahun+1 ?> </li>
        <li>KRS Semester <?php $semester = ($info_semester == 2)? "Genap" : ($info_semester == 3)? "KAS":"Ganjil"; ?><?php echo $semester; ?> <?php echo $info_tahun ?>/<?php echo $info_tahun+1 ?> belum divalidasi (Silakan hubungi dosen PA).</li>
        </ol>
      </div>
   </div>
 </div>
<?php endif; ?>
</p>

<br /><br />
<div align="center">
<a title="Klik untuk kembali" class="auiButton" href="<?php echo base_url().'siam/lihat-krs.html' ?>" role="button"><img src="<?php echo base_url().'images/back.png' ?>" align="top" style="border:none" /> <span class="uiButton">Kembali</span></a>
</div>

<br />

</div>

</div>